package edu.zust.zw.shop.db.dao.domain;

import java.util.ArrayList;
import java.util.List;

public class ShopExpectChangeDomainExample {
    protected String orderByClause;

    protected boolean distinct;

    protected List<Criteria> oredCriteria;

    public ShopExpectChangeDomainExample() {
        oredCriteria = new ArrayList<Criteria>();
    }

    public void setOrderByClause(String orderByClause) {
        this.orderByClause = orderByClause;
    }

    public String getOrderByClause() {
        return orderByClause;
    }

    public void setDistinct(boolean distinct) {
        this.distinct = distinct;
    }

    public boolean isDistinct() {
        return distinct;
    }

    public List<Criteria> getOredCriteria() {
        return oredCriteria;
    }

    public void or(Criteria criteria) {
        oredCriteria.add(criteria);
    }

    public Criteria or() {
        Criteria criteria = createCriteriaInternal();
        oredCriteria.add(criteria);
        return criteria;
    }

    public Criteria createCriteria() {
        Criteria criteria = createCriteriaInternal();
        if (oredCriteria.size() == 0) {
            oredCriteria.add(criteria);
        }
        return criteria;
    }

    protected Criteria createCriteriaInternal() {
        Criteria criteria = new Criteria();
        return criteria;
    }

    public void clear() {
        oredCriteria.clear();
        orderByClause = null;
        distinct = false;
    }

    protected abstract static class GeneratedCriteria {
        protected List<Criterion> criteria;

        protected GeneratedCriteria() {
            super();
            criteria = new ArrayList<Criterion>();
        }

        public boolean isValid() {
            return criteria.size() > 0;
        }

        public List<Criterion> getAllCriteria() {
            return criteria;
        }

        public List<Criterion> getCriteria() {
            return criteria;
        }

        protected void addCriterion(String condition) {
            if (condition == null) {
                throw new RuntimeException("Value for condition cannot be null");
            }
            criteria.add(new Criterion(condition));
        }

        protected void addCriterion(String condition, Object value, String property) {
            if (value == null) {
                throw new RuntimeException("Value for " + property + " cannot be null");
            }
            criteria.add(new Criterion(condition, value));
        }

        protected void addCriterion(String condition, Object value1, Object value2, String property) {
            if (value1 == null || value2 == null) {
                throw new RuntimeException("Between values for " + property + " cannot be null");
            }
            criteria.add(new Criterion(condition, value1, value2));
        }

        public Criteria andChangeIdIsNull() {
            addCriterion("change_id is null");
            return (Criteria) this;
        }

        public Criteria andChangeIdIsNotNull() {
            addCriterion("change_id is not null");
            return (Criteria) this;
        }

        public Criteria andChangeIdEqualTo(String value) {
            addCriterion("change_id =", value, "changeId");
            return (Criteria) this;
        }

        public Criteria andChangeIdNotEqualTo(String value) {
            addCriterion("change_id <>", value, "changeId");
            return (Criteria) this;
        }

        public Criteria andChangeIdGreaterThan(String value) {
            addCriterion("change_id >", value, "changeId");
            return (Criteria) this;
        }

        public Criteria andChangeIdGreaterThanOrEqualTo(String value) {
            addCriterion("change_id >=", value, "changeId");
            return (Criteria) this;
        }

        public Criteria andChangeIdLessThan(String value) {
            addCriterion("change_id <", value, "changeId");
            return (Criteria) this;
        }

        public Criteria andChangeIdLessThanOrEqualTo(String value) {
            addCriterion("change_id <=", value, "changeId");
            return (Criteria) this;
        }

        public Criteria andChangeIdLike(String value) {
            addCriterion("change_id like", value, "changeId");
            return (Criteria) this;
        }

        public Criteria andChangeIdNotLike(String value) {
            addCriterion("change_id not like", value, "changeId");
            return (Criteria) this;
        }

        public Criteria andChangeIdIn(List<String> values) {
            addCriterion("change_id in", values, "changeId");
            return (Criteria) this;
        }

        public Criteria andChangeIdNotIn(List<String> values) {
            addCriterion("change_id not in", values, "changeId");
            return (Criteria) this;
        }

        public Criteria andChangeIdBetween(String value1, String value2) {
            addCriterion("change_id between", value1, value2, "changeId");
            return (Criteria) this;
        }

        public Criteria andChangeIdNotBetween(String value1, String value2) {
            addCriterion("change_id not between", value1, value2, "changeId");
            return (Criteria) this;
        }

        public Criteria andPublishWareIdIsNull() {
            addCriterion("publish_ware_id is null");
            return (Criteria) this;
        }

        public Criteria andPublishWareIdIsNotNull() {
            addCriterion("publish_ware_id is not null");
            return (Criteria) this;
        }

        public Criteria andPublishWareIdEqualTo(String value) {
            addCriterion("publish_ware_id =", value, "publishWareId");
            return (Criteria) this;
        }

        public Criteria andPublishWareIdNotEqualTo(String value) {
            addCriterion("publish_ware_id <>", value, "publishWareId");
            return (Criteria) this;
        }

        public Criteria andPublishWareIdGreaterThan(String value) {
            addCriterion("publish_ware_id >", value, "publishWareId");
            return (Criteria) this;
        }

        public Criteria andPublishWareIdGreaterThanOrEqualTo(String value) {
            addCriterion("publish_ware_id >=", value, "publishWareId");
            return (Criteria) this;
        }

        public Criteria andPublishWareIdLessThan(String value) {
            addCriterion("publish_ware_id <", value, "publishWareId");
            return (Criteria) this;
        }

        public Criteria andPublishWareIdLessThanOrEqualTo(String value) {
            addCriterion("publish_ware_id <=", value, "publishWareId");
            return (Criteria) this;
        }

        public Criteria andPublishWareIdLike(String value) {
            addCriterion("publish_ware_id like", value, "publishWareId");
            return (Criteria) this;
        }

        public Criteria andPublishWareIdNotLike(String value) {
            addCriterion("publish_ware_id not like", value, "publishWareId");
            return (Criteria) this;
        }

        public Criteria andPublishWareIdIn(List<String> values) {
            addCriterion("publish_ware_id in", values, "publishWareId");
            return (Criteria) this;
        }

        public Criteria andPublishWareIdNotIn(List<String> values) {
            addCriterion("publish_ware_id not in", values, "publishWareId");
            return (Criteria) this;
        }

        public Criteria andPublishWareIdBetween(String value1, String value2) {
            addCriterion("publish_ware_id between", value1, value2, "publishWareId");
            return (Criteria) this;
        }

        public Criteria andPublishWareIdNotBetween(String value1, String value2) {
            addCriterion("publish_ware_id not between", value1, value2, "publishWareId");
            return (Criteria) this;
        }

        public Criteria andChangeWareIdIsNull() {
            addCriterion("change_ware_id is null");
            return (Criteria) this;
        }

        public Criteria andChangeWareIdIsNotNull() {
            addCriterion("change_ware_id is not null");
            return (Criteria) this;
        }

        public Criteria andChangeWareIdEqualTo(String value) {
            addCriterion("change_ware_id =", value, "changeWareId");
            return (Criteria) this;
        }

        public Criteria andChangeWareIdNotEqualTo(String value) {
            addCriterion("change_ware_id <>", value, "changeWareId");
            return (Criteria) this;
        }

        public Criteria andChangeWareIdGreaterThan(String value) {
            addCriterion("change_ware_id >", value, "changeWareId");
            return (Criteria) this;
        }

        public Criteria andChangeWareIdGreaterThanOrEqualTo(String value) {
            addCriterion("change_ware_id >=", value, "changeWareId");
            return (Criteria) this;
        }

        public Criteria andChangeWareIdLessThan(String value) {
            addCriterion("change_ware_id <", value, "changeWareId");
            return (Criteria) this;
        }

        public Criteria andChangeWareIdLessThanOrEqualTo(String value) {
            addCriterion("change_ware_id <=", value, "changeWareId");
            return (Criteria) this;
        }

        public Criteria andChangeWareIdLike(String value) {
            addCriterion("change_ware_id like", value, "changeWareId");
            return (Criteria) this;
        }

        public Criteria andChangeWareIdNotLike(String value) {
            addCriterion("change_ware_id not like", value, "changeWareId");
            return (Criteria) this;
        }

        public Criteria andChangeWareIdIn(List<String> values) {
            addCriterion("change_ware_id in", values, "changeWareId");
            return (Criteria) this;
        }

        public Criteria andChangeWareIdNotIn(List<String> values) {
            addCriterion("change_ware_id not in", values, "changeWareId");
            return (Criteria) this;
        }

        public Criteria andChangeWareIdBetween(String value1, String value2) {
            addCriterion("change_ware_id between", value1, value2, "changeWareId");
            return (Criteria) this;
        }

        public Criteria andChangeWareIdNotBetween(String value1, String value2) {
            addCriterion("change_ware_id not between", value1, value2, "changeWareId");
            return (Criteria) this;
        }

        public Criteria andCreateAtIsNull() {
            addCriterion("create_at is null");
            return (Criteria) this;
        }

        public Criteria andCreateAtIsNotNull() {
            addCriterion("create_at is not null");
            return (Criteria) this;
        }

        public Criteria andCreateAtEqualTo(Long value) {
            addCriterion("create_at =", value, "createAt");
            return (Criteria) this;
        }

        public Criteria andCreateAtNotEqualTo(Long value) {
            addCriterion("create_at <>", value, "createAt");
            return (Criteria) this;
        }

        public Criteria andCreateAtGreaterThan(Long value) {
            addCriterion("create_at >", value, "createAt");
            return (Criteria) this;
        }

        public Criteria andCreateAtGreaterThanOrEqualTo(Long value) {
            addCriterion("create_at >=", value, "createAt");
            return (Criteria) this;
        }

        public Criteria andCreateAtLessThan(Long value) {
            addCriterion("create_at <", value, "createAt");
            return (Criteria) this;
        }

        public Criteria andCreateAtLessThanOrEqualTo(Long value) {
            addCriterion("create_at <=", value, "createAt");
            return (Criteria) this;
        }

        public Criteria andCreateAtIn(List<Long> values) {
            addCriterion("create_at in", values, "createAt");
            return (Criteria) this;
        }

        public Criteria andCreateAtNotIn(List<Long> values) {
            addCriterion("create_at not in", values, "createAt");
            return (Criteria) this;
        }

        public Criteria andCreateAtBetween(Long value1, Long value2) {
            addCriterion("create_at between", value1, value2, "createAt");
            return (Criteria) this;
        }

        public Criteria andCreateAtNotBetween(Long value1, Long value2) {
            addCriterion("create_at not between", value1, value2, "createAt");
            return (Criteria) this;
        }

        public Criteria andLastUpdateAtIsNull() {
            addCriterion("last_update_at is null");
            return (Criteria) this;
        }

        public Criteria andLastUpdateAtIsNotNull() {
            addCriterion("last_update_at is not null");
            return (Criteria) this;
        }

        public Criteria andLastUpdateAtEqualTo(Long value) {
            addCriterion("last_update_at =", value, "lastUpdateAt");
            return (Criteria) this;
        }

        public Criteria andLastUpdateAtNotEqualTo(Long value) {
            addCriterion("last_update_at <>", value, "lastUpdateAt");
            return (Criteria) this;
        }

        public Criteria andLastUpdateAtGreaterThan(Long value) {
            addCriterion("last_update_at >", value, "lastUpdateAt");
            return (Criteria) this;
        }

        public Criteria andLastUpdateAtGreaterThanOrEqualTo(Long value) {
            addCriterion("last_update_at >=", value, "lastUpdateAt");
            return (Criteria) this;
        }

        public Criteria andLastUpdateAtLessThan(Long value) {
            addCriterion("last_update_at <", value, "lastUpdateAt");
            return (Criteria) this;
        }

        public Criteria andLastUpdateAtLessThanOrEqualTo(Long value) {
            addCriterion("last_update_at <=", value, "lastUpdateAt");
            return (Criteria) this;
        }

        public Criteria andLastUpdateAtIn(List<Long> values) {
            addCriterion("last_update_at in", values, "lastUpdateAt");
            return (Criteria) this;
        }

        public Criteria andLastUpdateAtNotIn(List<Long> values) {
            addCriterion("last_update_at not in", values, "lastUpdateAt");
            return (Criteria) this;
        }

        public Criteria andLastUpdateAtBetween(Long value1, Long value2) {
            addCriterion("last_update_at between", value1, value2, "lastUpdateAt");
            return (Criteria) this;
        }

        public Criteria andLastUpdateAtNotBetween(Long value1, Long value2) {
            addCriterion("last_update_at not between", value1, value2, "lastUpdateAt");
            return (Criteria) this;
        }
    }

    public static class Criteria extends GeneratedCriteria {

        protected Criteria() {
            super();
        }
    }

    public static class Criterion {
        private String condition;

        private Object value;

        private Object secondValue;

        private boolean noValue;

        private boolean singleValue;

        private boolean betweenValue;

        private boolean listValue;

        private String typeHandler;

        public String getCondition() {
            return condition;
        }

        public Object getValue() {
            return value;
        }

        public Object getSecondValue() {
            return secondValue;
        }

        public boolean isNoValue() {
            return noValue;
        }

        public boolean isSingleValue() {
            return singleValue;
        }

        public boolean isBetweenValue() {
            return betweenValue;
        }

        public boolean isListValue() {
            return listValue;
        }

        public String getTypeHandler() {
            return typeHandler;
        }

        protected Criterion(String condition) {
            super();
            this.condition = condition;
            this.typeHandler = null;
            this.noValue = true;
        }

        protected Criterion(String condition, Object value, String typeHandler) {
            super();
            this.condition = condition;
            this.value = value;
            this.typeHandler = typeHandler;
            if (value instanceof List<?>) {
                this.listValue = true;
            } else {
                this.singleValue = true;
            }
        }

        protected Criterion(String condition, Object value) {
            this(condition, value, null);
        }

        protected Criterion(String condition, Object value, Object secondValue, String typeHandler) {
            super();
            this.condition = condition;
            this.value = value;
            this.secondValue = secondValue;
            this.typeHandler = typeHandler;
            this.betweenValue = true;
        }

        protected Criterion(String condition, Object value, Object secondValue) {
            this(condition, value, secondValue, null);
        }
    }
}